﻿using System;

namespace SignalRApplication.Contracts
{
    public class GameDto
    {
        public Guid Id { get; set; }
        public string Description { get; set; }
        public int Status { get; set; }

        public string GameType { get; set; }
        public string PlayType { get; set; }

        public string GameCondition { get; set; }

        public string StatusName
        {
            get
            {
                switch (Status)
                {
                    case 0: return "准备";
                    case 1: return "正在进行";
                    case 2: return "暂停";
                    case 3: return "结束";
                    case 4: return "结束(没有赢家)";
                }
                return "";
            }
        }
    }
}
